<?php 
$con = @mysql_connect("localhost","root","");
if (!$con)
{
	die('Could not connect: ' . mysql_error());
}

mysql_select_db("data", $con);

if ($_POST['usercomment'] == Null) {
	echo "Mark can't be Null values!<br/>点击<a href='../teacher.html'>返回</a>！";
}
else{
	mysql_query("UPDATE homework_submit SET h_comment ='$_POST[usercomment]' WHERE h_name = 'upload.png'");

	echo "作业评分成功，点击<a href='../teacher.html'>返回</a>！";
}


mysql_close($con)
?>